/*
 *      Created on: Mar 4, 2011
 *      Author: topcoder
 */

#ifndef RECTANGLE_H_
#define RECTANGLE_H_

class Rectangle
{
public:
    Rectangle(double length, double width);
    double calculateArea() const;
    double calculatePerimeter() const;
    double setLength(double length);
    double setWidth(double width);

private:
    double length_m;
    double width_m;
    bool isShapeValid() const;
};




#endif /* RECTANGLE_H_ */
